package com.ssm.mapper;

import java.util.HashMap;
import java.util.List;

import com.ssm.model.CourseModel;
import com.ssm.model.GradeModel;
import com.ssm.model.LoginInfo;
import com.ssm.model.MaterialTemplateModel;
import com.ssm.model.TeacherModel;

public interface TeacherMapper {
	/*admin*/
	//显示教室列表
	List<TeacherModel> selectTeacher(HashMap<String, Object> map);
	//查找教师
	LoginInfo selectById(Integer id);
	//根据id查找教师
	TeacherModel selectTeacherById(Integer tId);
	//增加教师
	Integer insertTeacher(LoginInfo loginInfo);
	//修改教师
	Integer updateTeacher(HashMap<String, Object> map);
	//删除教师
	Integer deleteTeacher(Integer teacherId);
	//专业列表
	List<GradeModel> selectGrades();
	//查找专业
	GradeModel selectGradeById(Integer gId);
	//为教师安排评教
	Integer insertAssessPlan(HashMap<String,Object> map);
	//更新tmid
	Integer updateTmIdOnPlan(HashMap map);
	//更新tsId
	Integer updateTsIdOnPlan(HashMap map);
	//显示评教进度
	HashMap selectAssessByTid(Integer tId);
	//查询课程信息
	TeacherModel selectCourseByTid(Integer tId);
	CourseModel selectCourseById(Integer courseId);
	Integer checkCourseByTid(Integer tId);
	Integer insertCourse(HashMap map);
	Integer updateCourse(HashMap map);
	
	/* front */
	//完善个人信息
	Integer updateInfo(TeacherModel teacherModel);
	//更新验证码
	Integer updateVerifyByEmail(HashMap map);
	//验证验证码
	Integer checkVerify(HashMap map);
}
